<template>
  <Headerbar />
  <div class="message">
    <MessageSelector></MessageSelector>
    <n-space class="message-main" vertical :size="0">
      <n-card
        style="margin: 15px 0; height: 50px; font-weight: 600"
        size="small"
      >
        <span style="font-size: 1.1em">
          {{ route.meta.title }}
        </span>
      </n-card>
      <div class="right">
        <router-view></router-view>
      </div>
    </n-space>
  </div>
</template>

<script setup>
import MessageSelector from './components/MessageSelector.vue'

const route = useRoute()

onMounted(() => {})
</script>

<style scoped lang="scss">
.message {
  background: url('@assets/bg/cheese-01.jpg') top/cover no-repeat fixed;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  height: calc(100vh - 72px);
  width: 100vw;
  .tip {
    margin-top: 10px;
  }
  .message-main {
    background-color: rgba(255, 255, 255, 0.3);
    min-width: 70vw;
    padding: 0 20px;

    .right {
      display: flex;
      justify-content: center;
    }
  }
}
// @media screen and (max-width: 768px) {
//   .message-main {
//     padding-left: 0;
//     width: 100vw;
//     .right {
//       margin: 0 !important;
//     }
//   }
// }
</style>
